<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php 
			echo (empty($title_for_layout_cms)) ? $title_for_layout : $title_for_layout_cms;			
		?>
	</title>
	
	<meta name="Author" content="Sylwester Kowal"/>
	<meta name="Copyright" content="Sylwester Kowal"/>
	<meta name="Language" content="<?php echo Configure::read('Config.language');?>" />	
	<?php
		echo $this->Html->meta('icon','/img/'.HOST.'/favicon.ico');echo "\n";
		echo $this->Html->meta('keywords', $keywords_for_layout_cms);echo "\n";
		echo $this->Html->meta('description', $description_for_layout_cms);echo "\n";
	?>
		
	<?php echo $this->Html->script(array(
		 'jquery'
		,'jquery.cycle'
		,'scripts'
		,'highslide-full'
		,'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'
		,'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js'
	),$options = array('allowCache'=>false,'safe'=>false,'inline'=>true));?>
	
	<?php
	echo $javascript->codeBlock("
			hs.graphicsDir = '/css/highslide/graphics/';
			hs.outlineType = 'rounded-white';
			hs.wrapperClassName = 'draggable-header';
			hs.align = 'center';
			hs.dimmingOpacity = 0.85;
			hs.width = 900;
			hs.height = 650;
		",$options = array('allowCache'=>false,'safe'=>false,'inline'=>true));
	?>

	<?php 
		echo $this->Html->css(array(
			 HOST.'/style'
			,HOST.'/form'
			,HOST.'/custom-theme/jquery-ui-1.8.16.custom'
			,HOST.'/menu/dropdown'
			,HOST.'/menu/default.advanced'
			,'highslide/highslide'		
		));		
	?>

	<?php echo $scripts_for_layout;?>
	
	<link href='http://fonts.googleapis.com/css?family=Italianno' rel='stylesheet' type='text/css'>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
	<script type="text/javascript" src="js/scripts.js"></script>
</head>
<body>
	<div class="page">
		<div class="grid_4 alerts" title="<?php //echo __('Attention',true)?>">
			<p><?php
			$alert = $this->Session->flash();
			$alert .= $this->Session->flash('auth');
			$alert .= $this->Session->flash('email');
			echo $alert;
			?>
			</p>
		</div>
			<?php echo $this->element('logo')?>
			<div class="clear">&nbsp;</div>
			
			<?php echo $this->element('menu')?>
			<div class="clear">&nbsp;</div>
			<?php echo $content_for_layout;?>
			<div class='clear'>&nbsp;</div>
			<?php echo $this->element('footer')?>
			<div class="clear">&nbsp;</div>
	</div>
	<div class="clear">&nbsp;</div>
</body>
</html>